//Created  on 2019/3/12 by  LCD:https://github.com/liucaide .

/***** 模块文档 *****
 *
 */



import Foundation
import UIKit
import CaamDauValue

class ViewController: UIViewController {
    
    @IBOutlet weak var tableView: UITableView!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        let arr:[Any] = [3.0,
                         "3.6",
                         "",
                         -9,
                         [1,"2"],
                         [1:234,
                          "23":[1:2,
                                2:3,
                                3:4]
            ]
        ]
        print(arr.intValue(1))
        print(arr.uintValue(1))
        let uu = arr.uint(3) ?? UInt(abs(arr.intValue(3)))
        print(uu)
        print(arr.uintAbsValue(3))
        print(arr.floatValue(1))
        print(arr.urlValue(2))
        print(arr.arrayValue(4))
        print(arr.stringValue(1).arrayValue("."))
        print(arr.dictValue(5).dictValue("23"))
        print("123.88".intValue)
        print("12a3.88".int ?? 0)
        print("123.88".floatValue)
        print("123.88".arrayValue("."))
        
    }
}



